package kirk.ocean.pp.model;

import java.util.Collection;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class PPUser {
	@Id
	private Long id;
	private String name;
	private Long reputation;
	private Collection<Content> contributions;
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdOn;
	private String passwordHash;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getReputation() {
		return reputation;
	}
	public void setReputation(Long reputation) {
		this.reputation = reputation;
	}
	public Collection<Content> getContributions() {
		return contributions;
	}
	public void setContributions(Collection<Content> contributions) {
		this.contributions = contributions;
	}
	public Date getCreatedOn() {
		return createdOn;
	}
	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}
	public String getPasswordHash() {
		return passwordHash;
	}
	public void setPasswordHash(String passwordHash) {
		this.passwordHash = passwordHash;
	}
	
}
